package cn.iocoder.yudao.module.api.trade.verify.dto;

import cn.iocoder.yudao.framework.validation.InEnumValue;
import cn.iocoder.yudao.module.api.trade.verify.enums.VerifyBizType;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Schema(description = "核销记录新增 DTO")
@Data
public class TradeVerifyRecordSaveDTO {

    @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "17094")
    @NotNull(message = "用户编号不能为空")
    private Long userId;

    @Schema(description = "店铺编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "11934")
    @NotNull(message = "店铺编号不能为空")
    private Long shopId;

    @Schema(description = "业务类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "业务类型不能为空")
    @InEnumValue(VerifyBizType.class)
    private Integer bizType;

    @Schema(description = "业务编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "28277")
    @NotNull(message = "业务编号不能为空")
    private String bizId;

    @Schema(description = "核销码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "核销码不能为空")
    private String code;

    @Schema(description = "核销人员姓名", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "核销人员姓名不能为空")
    private String verifierName;

    @Schema(description = "核销人员电话", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "核销人员电话不能为空")
    private String verifierMobile;

    @Schema(description = "核销说明")
    private String note;

}